@echo off
:start
echo.
echo Veuillez choisir une carrosserie :
echo.
echo (1) Bleu odyssee D44
echo (2) Gris agathe B65
echo (3) Gris eclipse B66
echo (4) Gris hologramme 603
echo (5) Gris sideral B64
echo (6) Noir nacre 676
echo (7) Rouge de feu B76
echo (8) Vert amande 190
echo (9) Vert abysse 903
echo (a) Vert epicea 926
echo.
set /p choix= La couleur choisie est :
rem CLS
rem if not '%choix%'== set choix=%choix:~0,1%
if '%choix%'=='1' goto d44
if '%choix%'=='2' goto b65
if '%choix%'=='3' goto b66
if '%choix%'=='4' goto 603
if '%choix%'=='5' goto b64
if '%choix%'=='6' goto 676
if '%choix%'=='7' goto b76
if '%choix%'=='8' goto 190
if '%choix%'=='9' goto 903
if '%choix%'=='a' goto 926
echo.
echo "%choix%" choix impossible, veuillez reessayer
pause
cls
:d44
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.4 0.4 0.42 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.0 0.0 0.03 1"
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.00 0.03 0.12 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "65"
goto conf
:b65
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.44 0.38 0.52 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.15 0.15 0.15 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "65"
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.48 0.44 0.42 1"
goto conf
:b66
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.03 0.03 0.03 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.01 0.01 0.01 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "42"
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.44 0.46 0.42 1"
goto conf
:603
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.50 0.51 0.53 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.04 0.04 0.04 1"
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.10 0.105 0.105 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "90"
goto conf
:b64
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.54 0.55 0.60 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.11 0.11 0.12 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "50"
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.37 0.41 0.31 1"
goto conf
:676
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.specular "1.10 1 0.80 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0 0 0 1"
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0 0 0 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "90"
goto conf
:b76
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.31 0.01 0.00 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.08 0.00 0.00 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "100"
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.37 0.41 0.31 1"
goto conf
:190
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0.46 0.51 0.41 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0.17 0.19 0.15 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "100"
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.37 0.41 0.31 1"
goto conf
:903
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.specular "0.80 0.95 1.06 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0 0.01 0.01 1"
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0 0.02 0.01 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "65"
goto conf
:926
rem echo Vous avez choisi la couleur %choix%
pause
..\..\..\..\ini ..\car.shd shader_couleur.specular "1.06 0.95 0.80 1"
..\..\..\..\ini ..\car.shd shader_couleur.ambient "0 0.02 0.01 1"
..\..\..\..\ini ..\car.shd shader_couleur.diffuse "0 0.05 0.03 1"
..\..\..\..\ini ..\car.shd shader_couleur.shininess "65"
goto conf
:conf
cls
echo.
echo Veuillez choisir une action :
echo.
echo (1) Changer de couleur
echo (2) Quitter
echo.
set /p act= Votre action est :
rem CLS
rem if not '%act%'== set act=%act:~0,1%
if '%act%'=='1' goto start
if '%act%'=='2' goto exit
:exit
exit
